#ifndef MAPDISPLAYITEM_H
#define MAPDISPLAYITEM_H

#include <QGraphicsItem>
#include <QPainter>
#include <QImage>

class MapDisplayItem : public QGraphicsItem
{
public:
    explicit MapDisplayItem(float length, QGraphicsItem *parent = 0);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
    QRectF boundingRect() const;
    void setSize(int x, int y);
    void updatePositions(float player, float opponent);

    void setLength(float len);
private:
    float mapLength;
    float playerPosition;
    float opponentPosition;
    int width;
    int height;

};

#endif // MAPDISPLAYITEM_H
